 <?php
set_time_limit(0); 
include ("laytin.php");
header('Content-Type: text/html;charset=utf-8');
$urlwebsite="http://dantri.com.vn";
$links=DanTri_TrangChu($urlwebsite);
foreach ($links as $td => $url){
$tin=DanTri_Lay1Tin($urlwebsite,$url);
echo $tin['tieude'],"<br>";
echo $tin['tomtat'],"<br>";
echo $tin['content']; 
echo "<hr>";
   flush();
   //LuuTinVaoDB($tin, $url,"vnexpress");
next($links);
}
?> 